<DOCTYPE html>
<!--HTML5 doctype-->
<html>
<head>
	<title>护理记录</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
	<link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
	<link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
	<script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="../../js/jquery.mobile-1.4.0.min.js"></script>
	<script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
	<script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
</head>
<body>
	<div data-role="page" data-theme="c" id="page">
	 	
		<style type="text/css">
		.hulijilu{border-bottom:1px solid #a3a3a3; height:104px; margin-top:5px;padding:0 8px;}
		.hulijilu:hover,.hulijilu:active{border-bottom:1px solid #a3a3a3; background:#e3e3e3; height:104px; margin-top:5px;padding:0 8px;}
		.hulijilu .hulijilu_text{height:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:26px;}
		.hulijilu .hulijilu_name{color:#067ebb;}
		.hulijilu_title{color:#067ebb;font-weight:bolder;background:#f0f0f0;padding-left:10px;height:25px;padding-top:7px;}
		#hulijilu_time{float:right;padding-right:10px;}
		</style>
		<div class="hulijilu_title">添加护士:<span id='hulijilu_username'></span><span id='hulijilu_time'></span></div>
		<div class="edit_hulijilu_list">
			
		</div>
		<script type='text/javascript'>
		$(function () {
			//document_type_global = "edithulijilu";
			//setHeader();
			huliJiluEdit();
			huliwenshu_id=getRequestOne("huliwenshu_id")
		});
		$("#add_jilu").die().live("click",function(){
			window.location.href="./addXuetangJiludan.html?huliwenshu_id="+huliwenshu_id+"&type="+getRequestOne("type")+"&host_ip="+host_ip+"&user_number="+nurse_info_global.user_number+"&user_name="+nurse_info_global.user_name+"&user_department="+nurse_info_global.user_department+"&patient_id="+patient_info_global.patient_id+"&patient_zhuyuan_id="+patient_info_global.zhuyuan_id+"&patient_zhuyuan_bingqu="+patient_info_global.zhuyuan_bingqu+"&patient_bingchuang_hao="+patient_info_global.bingchuang_hao+"&patient_xingming="+patient_info_global.xingming+"&patient_xingbie="+patient_info_global.xingbie+"&patient_nianling="+patient_info_global.nianling;
		});
		$(".hulijilu").die().live("click",function(){
			window.location.href="./showOneXuetangJiludan.html?hulijilu_id="+$(this).attr('id')+"&host_ip="+host_ip+"&user_number="+nurse_info_global.user_number+"&user_name="+nurse_info_global.user_name+"&user_department="+nurse_info_global.user_department+"&patient_id="+patient_info_global.patient_id+"&patient_zhuyuan_id="+patient_info_global.zhuyuan_id+"&patient_zhuyuan_bingqu="+patient_info_global.zhuyuan_bingqu+"&patient_bingchuang_hao="+patient_info_global.bingchuang_hao+"&patient_xingming="+patient_info_global.xingming+"&patient_xingbie="+patient_info_global.xingbie+"&patient_nianling="+patient_info_global.nianling;
		});
		$(".prev").die().live("click",function(){
			window.location.href="./showHulijilu.html?type="+getRequestOne("type")+"&host_ip="+host_ip+"&user_number="+nurse_info_global.user_number+"&user_name="+nurse_info_global.user_name+"&user_department="+nurse_info_global.user_department+"&patient_id="+patient_info_global.patient_id+"&patient_zhuyuan_id="+patient_info_global.zhuyuan_id+"&patient_zhuyuan_bingqu="+patient_info_global.zhuyuan_bingqu+"&patient_bingchuang_hao="+patient_info_global.bingchuang_hao+"&patient_xingming="+patient_info_global.xingming+"&patient_xingbie="+patient_info_global.xingbie+"&patient_nianling="+patient_info_global.nianling;
		});

		function huliJiluEdit(){
			setHeader();
			$.ajax({
				type: "get",
				async: false,
				url:server_url+"Mobile/HuliJilu/showJiluJson"+yiyuan_id,
				data: {zhuyuan_id:patient_info_global.zhuyuan_id,hulijilu_id:getRequestOne("huliwenshu_id"),user_number:getRequestOne('user_number')},
				dataType: "jsonp",
				jsonp: "callbackShowJiluJson",
				jsonpCallback:"feedBackStateShowJiluJson",
				error:function(mes)
				{
					alert(mes);
				},
				success: function(result) {
					if(result.ret=="success")
					{
						$("#hulijilu_username").text(result.data_title.chuangjian_hushi_name);
						$("#hulijilu_time").text(result.data_title.chuangjian_time);
						var str='';
						if(result.wenshu_type=="2")
						{
							if(result.data!='empty')
							{
								for(var i=0;i<result.data.length;i++)
								{
									str += '<div style="height:130px;" class="hulijilu" id="'+result.data[i].id+'">'+
										'<div class="hulijilu_text"><span class="hulijilu_name">早餐</span>:早餐前'+result.data[i].valcol1+'&nbsp;<span>早餐后'+result.data[i].valcol2+'&nbsp;</span></div>'+
										'<div class="hulijilu_text"><span class="hulijilu_name">午餐</span>:午餐前'+result.data[i].valcol3+'&nbsp;<span>午餐后'+result.data[i].valcol4+'&nbsp;</span></div>'+
										'<div class="hulijilu_text"><span class="hulijilu_name">晚餐</span>:晚餐前'+result.data[i].valcol5+'&nbsp;<span>晚餐后'+result.data[i].valcol6+'&nbsp;</span></div>'+
										'<div class="hulijilu_text"><span class="hulijilu_name">睡眠</span>:睡前'+result.data[i].valcol7+'&nbsp;<span>凌晨3点'+result.data[i].valcol8+'&nbsp;</span></div>'+
										'<div class="hulijilu_text"><span style="float:right;">时间:'+result.data[i].jilu_time+'&nbsp;&nbsp;签名:'+result.data[i].jilu_hushi_name+'</span></div>'+
									'</div>';
								}
							}
						}
						else
						{
							if(result.data!='empty')
							{
								for(var i=0;i<result.data.length;i++)
								{
									str += '<div class="hulijilu" id="'+result.data[i].id+'">'+
										'<div class="hulijilu_text"><span class="hulijilu_name">出&nbsp;入&nbsp;量</span>:尿'+result.data[i].valcol13+'&nbsp;<span>输液'+result.data[i].valcol12+'&nbsp;</span></div>'+
										'<div class="hulijilu_text"><span class="hulijilu_name">生命体征</span>:<span>体温'+result.data[i].valcol1+'&nbsp;</span><span>脉搏'+result.data[i].valcol2+'</span><span>呼吸'+result.data[i].valcol3+'&nbsp;</span><span>血压'+result.data[i].valcol31+'</span></div>'+
										'<div class="hulijilu_text"><span class="hulijilu_name">特殊记录</span>:'+result.data[i].content+'</div>'+
										'<div class="hulijilu_text"><span style="float:right;">时间:'+result.data[i].jilu_time+'&nbsp;&nbsp;签名:'+result.data[i].jilu_hushi_name+'</span></div>'+
									'</div>';
								}
							}
						}
						$('.edit_hulijilu_list').html(str);
					}
					else
						alert("失败");
				}
			});
		}
		</script>
	</div>
</body>
</html>